package com.ziytek.web.citizen.model.rsp;

import com.ziytek.web.citizen.constant.ServerConstant;
import lombok.Data;

import java.util.List;

/**
 * @className QueryFileNameRsp
 * @description: 可导出电池实时曲线数据文件名列表
 * @jdkVersion: 1.8
 * @author: fhx
 * @date: 2024/7/2 9:53
 */
@Data
public class QueryFileNameRsp {

    /**
     * 返回编码
     */
    private String retCode;

    /**
     * 编码描述
     */
    private String retMsg;

    /**
     * 可导出文件名详情列表
     */
    private List<String> data;

    public void error() {
        this.retCode = ServerConstant.ERROR;
        this.retMsg = ServerConstant.ERROR_MSG;
    }

    public void error(String msg) {
        this.retCode = ServerConstant.ERROR;
        this.retMsg = msg;
    }

    public void success() {
        this.retCode = ServerConstant.SUCCESS;
        this.retMsg = ServerConstant.SUCCESS_MSG;
    }
}
